package Day5Zuoye;

public class Mouse {
    private String name;
    private int heavy;
    private int power;

    public void show(){
        System.out.println(name+"老鼠,体重是:"+heavy+"g,体力值:"+power);
    }

    public Mouse(String name, int heavy, int power) {
        this.name = name;
        this.heavy = heavy;
        this.power = power;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getHeavy() {
        return heavy;
    }

    public void setHeavy(int heavy) {
        this.heavy = heavy;
    }

    public int getPower() {
        return power;
    }

    public void setPower(int power) {
        this.power = power;
    }
}
